package com.changgou.goods.dao;


import com.changgou.goods.pojo.Brand;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/****
 * @Author:shenkunlin
 * @Description:Brand的Dao
 * @Date 2019/6/14 0:12
 *****/
public interface BrandMapper extends Mapper<Brand> {

    /**
     * @param categoryid
        * @return
        */
@Select("SELECT * from tb_brand tb,tb_category_brand tcb WHERE tb_id=tcb.brand_id AND tcb.category_id=category_id")
    List<Brand> findByCategory(Integer categoryid);


        }
